home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / p4 / p4-1_2c.lha / p4-1.2c / bin / killp4 < prev    next >
Text File  |  1993-05-24  |  577b  |  21 lines

  1. PGFILE=$1
  2. PGM=$2
  3. echo $PGM | \
  4. awk '{if (NR == 1)
  5.       {
  6.       $APGM=$1
  7.           printf("echo starting local kill \n")
  8.           printf("/usr/local/p4/bin/killipc & \n")
  9.           printf("/usr/local/p4/bin/kj %s & \n",$APGM)
  10.       }
  11.       else if ($1 != "local"  &&  substr($1,1,1) != "#") 
  12.       {
  13.           printf("echo starting kill on %s \n",$1)
  14.           printf("%s %s /usr/local/p4/bin/killipc & \n","rsh",$1)
  15.           printf("%s %s /usr/local/p4/bin/kj %s & \n","rsh",$1,$APGM)
  16.       }
  17.      }
  18.      END { printf("echo all kills started \n") }  
  19.      ' - $PGFILE  |  \
  20. sh
  21.